home *** CD-ROM | disk | FTP | other *** search
- ;--------------------------------------------------------------------------
- ;Arachne understands four basic file types: HTM, GIF, BMP and TXT. Only
- ;GIF and BMP can be inlined using <IMG> tag. If the file has different
- ;extension than HTM, GIF or TXT and in the following conversion table is no
- ;corresponding action defined, Arachne offers moving of downloaded file
- ;from CACHE directory (or of local file) to DOWNLOAD directory.
- ;
- ;For conversion to supported format is used macro "ext1>ext2|command",
- ;for calling external viewer macro "extension|command". See syntax rules
- ;(at the end of this file.)
- ;--------------------------------------------------------------------------
- [MIME]
- text/html HTM
- text/plain TXT
- image/gif GIF
- image/jpeg JPG>BMP|DJPEG.EXE -bmp -colors 256 $1 $2
- audio/x-wav WAV|PLANY.EXE $1
- audio/basic AU|PLANY.EXE $1
- ;
- ;My pseudo jpeg mime type - usage depends on ARACHNE.CFG...
- fastimage/jpeg JPG>BMP|DJPEG.EXE -bmp $1 $2
- ;
- ;Replace image/jpeg config like with this to save disk space:
- ;image/jpeg JPG>GIF|DJPEG.EXE $1 $2
- ;
- ;Disable (comment out) this, if you want use Arachne on PC XT or PC AT:
- image/png PNG>BMP|[200]JPNG2BMP.EXE $1 $2
- image/x-png PNG>BMP|[200]JPNG2BMP.EXE $1 $2
- ;
- ;defaultly not distributed APMs:
- video/mpeg MPG>HTM|APM.EXE -h http://www.naf.cz/arachne/apm/mpeg>$2
- video/x-msvideo AVI>HTM|APM.EXE -h http://www.multimediaware.com/qv/qv>$2
- video/quicktime MOV>HTM|APM.EXE -h http://www.multimediaware.com/qv/qv>$2
- audio/mpeg MP3>HTM|APM.EXE -h http://www.multimediaware.com/qv/qv>$2
- audio/x-mpeg MP3>HTM|APM.EXE -h http://www.multimediaware.com/qv/qv>$2
- audio/mpeg3 MP3>HTM|APM.EXE -h http://www.multimediaware.com/qv/qv>$2
- audio/x-mpeg3 MP3>HTM|APM.EXE -h http://www.multimediaware.com/qv/qv>$2
- application/postscript PS>HTM|APM.EXE -h http://www.naf.cz/arachne/apm/gs>$2
- application/mac-binhex40 >HTM|[100]type binhex.htm>$2
- ;
- ;I will save this with correct extension:
- text/enriched RTF
- text/richtext RTF
- image/x-bitmap BMP
- image/tiff TIF
- image/x-xbitmap XBM
- message/rfc822 CNM
- message/rfc822 SNT
- message/rfc822 MES
- message/rfc822 TBS
- message/partial CNM
- message/news NWS
- application/rtf RTF
- application/wordperfect5.1 WPD
- application/pdf PDF
- application/msword DOC
- application/zip ZIP
- application/octet-stream EXE
- application/octet-stream COM
- application/x-zipped ZIP
- application/zip ZIP
- ;
- ;Arachne-specific:
- application/x-arachne-package APM>HTM|APM.EXE -u $u $1>$2
- application/x-netdos-exe EXE|@APM.EXE -v $u $1
- application/x-netdos-com COM|@APM.EXE -v $u $1
- ;--------------------------------------------------------------------------
- ;Pseudomime types - "Arachne extensions to MIME" :-)
- ;--------------------------------------------------------------------------
- [ARACHNE]
- gopher/0 TXT
- gopher/1 GOP>HTM|[100]GOPH2HTM.EXE $1>$2
- gopher/5 ZIP
- gopher/6 UUE
- gopher/7 GOP>HTM|[100]GOPH2HTM.EXE -s>$2
- gopher/g GIF
- finger/out TXT
- news/list TXT
- ftp/list FTP>HTM|[110]WWWMAN.EXE -f $1>$2
- ;--------------------------------------------------------------------------
- ;External internet protocols - any new protocol can be declared using this:
- ;--------------------------------------------------------------------------
- external/telnet |@APM.EXE -t http://www.naf.cz/arachne/apm/telnet
- external/irc |@APM.EXE -t http://www.naf.cz/arachne/apm/irc
- ;external/ftp |@ftp.exe
- ;external/gopher |@minuet.exe $u
- ;--------------------------------------------------------------------------
- ;Local files and DGI:
- ;--------------------------------------------------------------------------
- ;Try to uncomment following, and you will have MSIE 9.0 style desktop ;-)
- ;(note: extension .com must preceed .c, etc.)
- ;file/.exe |@$1
- ;file/.com |@$1
- ;file/.bat |@$1
- ;
- ;Other files and DGI scripts:
- file/*.mes >HTM|[110]MAILMAN.EXE -i $1>$2
- fastfile/*.mes >HTM|[110]MAILMAN.EXE -i $1>$2
- file/* >HTM|[110]WWWMAN.EXE -d $1>$2
- fastfile/* >HTM|[110]WWWMAN.EXE -l $1>$2
- file/cacheindex.dgi >HTM|[110]WWWMAN.EXE -c $c>$2
- file/history.dgi >HTM|[110]WWWMAN.EXE -h $h>$2
- file/wwwmanset.dgi >HTM|[110]WWWMAN.EXE -s $S>$2
- file/galery.dgi >HTM|[110]WWWMAN.EXE -g $S>$2
- file/.cnm >HTM|[120]MAILMAN.EXE $1>$2
- file/.mes >HTM|[120]MAILMAN.EXE $1>$2
- file/.tbs >HTM|[120]MAILMAN.EXE $1>$2
- file/.snt >HTM|[120]MAILMAN.EXE $1>$2
- file/inbox.dgi >HTM|[135]MAILMAN.EXE -i $M*.cnm>$2
- file/outbox.dgi >HTM|[135]MAILMAN.EXE -i $M*.tbs>$2
- file/readmail.dgi >HTM|[135]MAILMAN.EXE -i $M*.mes>$2
- file/sentmail.dgi >HTM|[135]MAILMAN.EXE -i $M*.snt>$2
- file/reply.dgi >HTM|[120]MAILMAN.EXE -r -s=$S>$2
- file/resend.dgi >HTM|[120]MAILMAN.EXE -e -s=$S>$2
- file/forward.dgi >HTM|[120]MAILMAN.EXE -f -s=$S>$2
- file/delmail.dgi >HTM|[135]MAILMAN.EXE -d -s=$S>$2
- file/markmail.dgi >HTM|[135]MAILMAN.EXE -m -s=$S>$2
- file/test.dgi >TXT|[100]COPY $q $2>NUL
- file/echo.dgi >TXT|[100]ECHO $s>$2
- file/mem.dgi >HTM|MEM|fixmem>$2
- file/memc.dgi >HTM|MEM /C|fixmem /C>$2
- file/wizard.dgi >HTM|@wizard.exe $2
- file/wizardm.dgi >HTM|wizard.exe -m $2
- file/grep.dgi >TXT|FIND "$s" *.htm /S>$2
- file/pktstat.dgi >TXT|[100]PKTSTAT.COM>$2
- file/unpackklos.dgi |@setup.bat -k
- file/configklos.dgi |@PPPMENU.EXE
- file/dosshell.dgi |@echo Type 'EXIT' to return to Arachne...\n%%COMSPEC%%
- file/printprn.dgi |[100]TYPE _4prt.txt>PRN
- file/printcom.dgi |PRINT.COM _4prt.txt
- file/psprintprn.dgi |[100]TYPE _4prt.ps>PRN
- file/psprintcom.dgi |PRINT.COM _4prt.ps
- file/printqpad.dgi >HTM|COPY $equickpad.txt _4prt.txt>NUL\nTYPE $eprint.ah>$2
- file/export.dgi |[100]COPY _4prt.txt $s>NUL
- file/exportps.dgi |[100]COPY _4prt.ps $s>NUL
- file/.acf |COPY $1 ARACHNE.CFG\narachne.bat
- file/.bhx >HTM|[100]type $ebinhex.htm>$2
- file/.fil >TXT|[100]DIR $l>$2
- file/.apm >HTM|APM.EXE -u $u $1>$2
- file/apm.dgi >HTM|[100]copy $eapm.htp+$esystem\\apm.db\\*.htm $2>NUL
- file/.ook |@COPY $1 $$roura3.bat>NUL\nCALL $$roura3.bat
- File/.eek |@COPY $1 $$roura3.bat>NUL\nCALL $$roura3.bat $i $n $g $x
- file/.htt HTM
- file/.htp HTM
- file/.ah HTM
- file/.gop TXT
- file/.ftp TXT
- file/edithotlist.dgi >HTM|[100]HOTLSMAN.EXE $s>$2
- file/makehotlist.dgi >HTM|[100]HOTLSMAN.EXE -q $q>$2
- file/hotlistmgr.dgi >HTM|[100]HOTLSMAN.EXE $b>$2
- file/.log TXT
- file/.doc TXT
- file/.cfg TXT
- file/.c TXT
- file/.bat TXT
- file/file_id.diz TXT
- file/.jpg >BMP|DJPEG.EXE -bmp -colors 256 $1 $2
- file/.jpe >BMP|DJPEG.EXE -bmp -colors 256 $1 $2
- file/.png >BMP|[200]JPNG2BMP.EXE $1 $2
- file/.wav |PLANY.EXE $1
- file/.au |PLANY.EXE $1
- file/files.bbs >HTM|BBS2HTML.EXE $1 $2
- ;
- ;defaultly not distributed APMs:
- file/.mpg >HTM|APM.EXE -h http://www.naf.cz/arachne/apm/mpeg>$2
- file/.mpe >HTM|APM.EXE -h http://www.naf.cz/arachne/apm/mpeg>$2
- file/.avi >HTM|APM.EXE -h http://www.multimediaware.com/qv/qv>$2
- file/.mov >HTM|APM.EXE -h http://www.multimediaware.com/qv/qv>$2
- file/.mp1 >HTM|APM.EXE -h http://www.multimediaware.com/qv/qv>$2
- file/.mp2 >HTM|APM.EXE -h http://www.multimediaware.com/qv/qv>$2
- file/.mp3 >HTM|APM.EXE -h http://www.multimediaware.com/qv/qv>$2
- file/ghostscript.dgi >HTM|APM.EXE -h http://www.naf.cz/arachne/apm/gs>$2
- file/.ps >HTM|APM.EXE -h http://www.naf.cz/arachne/apm/gs>$2
- ;file/.zip >TXT|[300]PKUNZIP -v $1>$2
- ;file/.arj >TXT|[300]ARJ l $1>$2
- ;file/00index >HTM|BBS2HTML.EXE $1 $2
- ;file/00_index >HTM|BBS2HTML.EXE $1 $2
- ;---------------------------------------------------------------------------
- ;Syntax of MIME.CFG (please don't beat me, I'll never do it again !! ;-)
- ;--------------------------------------------------------------------------
- ;* If command starts '@', it will be executed in text mode and with maximum
- ; memory.
- ;* If command starts with [nn] string, it will be executed without
- ; temporary leaving of Arachne if there is [nn] kB available for program.
- ;* In command arguments you can use following macros. Instead of $1, $2, etc.
- ; like in Unix scripts you can use %1, %2 like in DOS batch files.
- ; $1 ... full input filename
- ; $2 ... full output filename
- ; $u ... url of document
- ; $p ... host (telnet://cyberspace.org -> cyberspace.org)
- ; $d ... file (ftp://ftp.vse.cz/pub/msdos/Arachne/ -> /pub/msdos/Arachne/)
- ; $q ... file with query string (created only when using this macro)
- ; $s ... CGI compatible query string (max. 80 characters)
- ; $c ... full name of cache index (typicaly CACHE.IDX)
- ; $h ... full name of history file (typicaly HISTORY.LST)
- ; $b ... full name of bookmarks (typicaly HOTLIST.HTM)
- ; $m ... path to mail directory (typicaly MAIL\)
- ; $a ... patch to cache ("archive") (typicaly CACHE\)
- ; $l ... last visited document (filename)
- ; $i ... your ip address
- ; $n ... ip address of 1st nameserver (according to ARACHNE.CFG)
- ; $g ... ip address of 1st gateway (according to ARACHNE.CFG)
- ; $x ... netmask (according to ARACHNE.CFG)
- ; $e ... path to executable files (CORE.EXE, MAILMAN.EXE, etc.)
- ; \n ... end of line (note: this won't work for "|[nn]xx" style commands!)
- ; %% ... % character
- ; $$ ... $ character
- ; \\ ... \ character
- ;---------------------------------------------------------------------------
- [auto-added]
-